
import { request } from '@/utils/request';

// 查询公告列表
export const getPage = (params: any) => {
  return request.get({
    url: '/staff/web/userCenter/notice/notice/page.json',
    params
  })
}

// 查询公告详情
export const getById = (id: string) => {
  return request.get({
    url: '/staff/web/userCenter/notice/notice/getById.json?id=' + id
  })
}

// 修改公告
export const update = (data: any, ) => {

  return request.put({
    url: '/staff/web/userCenter/notice/notice/update.json',
    data
  })
}

// 删除公告
export const del = (id: string) => {

  return request.post({
    url: '/staff/web/userCenter/notice/notice/del.json',
    data: [id, ]
  })
}
